package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.BusinessProjectMapper;
import com.qingke.pojo.BusinessProject;
import com.qingke.service.BusinessProjectService;
@Service("businessProjectService")
public class BusinessProjectServiceImpl implements BusinessProjectService {
	@Resource
	private BusinessProjectMapper bpDao;

	public BusinessProject getBusinessProjectById(int id) {
		return bpDao.selectByPrimaryKey(id);
	}

	public List<BusinessProject> listBusinessProjectByStudentId(int studentId) {
		return bpDao.listBusinessProjectByStudentId(studentId);
	}

	public int softDeleteBusinessProject(int id) {
		return bpDao.softDelete(id);
	}

	public int updateBusinessProjectByPrimaryKey(BusinessProject record) {
		return bpDao.updateByPrimaryKey(record);
	}

	public int saveBusinessProject(BusinessProject record) {
		return bpDao.insertSelective(record);
	}

}
